package com.ruoyi.template.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 模板和菜单的关联表
 */
@TableName(value ="tb_template_menus")
@Data
public class TemplateMenus implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private String id;
    /**
     * 模版id
     */
    @TableField(value = "template_id")
    private String templateId;
    /**
     * 菜单id
     */
    @TableField(value = "menu_id")
    private String menuId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public TemplateMenus(String id, String templateId, String menuId) {
        this.id = id;
        this.templateId = templateId;
        this.menuId = menuId;
    }

    @Override
    public String toString() {
        return "TemplateMenus{" +
                "id='" + id + '\'' +
                ", templateId='" + templateId + '\'' +
                ", menuId='" + menuId + '\'' +
                '}';
    }
}
